package com.xianyu.open.restclient.exception;

/**
 *
 * @author bailinan
 * @date 2018/7/22
 */
public class RestClientException extends RuntimeException{
    private RestClientExceptionModel restClientExceptionModel;

    public RestClientException() {
    }

    public RestClientException(RestClientExceptionModel restClientExceptionModel) {
        this.restClientExceptionModel = restClientExceptionModel;
    }

    public RestClientExceptionModel getRestClientExceptionModel() {
        return restClientExceptionModel;
    }

    @Override
    public String getMessage() {
        return restClientExceptionModel.toString();
    }
}
